﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BookStats
{
    class Program
    {
        static void Main(string[] args)
        {
            Order o = new Order(args[0]);
            ln("Erinevaid müügis olevaid raamatuid on kokku: " + o.GetBookCount());
            ln("----------------------------------------------------------------------------------------------------------------");
            ln("ÜLESANNE 1");
            Stopwatch watch = new Stopwatch();
            watch.Start();
            ln(o.GetOrderCount(args[1], args[2]) + " klienti ostsid Raamat " + args[1] + " ja Raamat " + args[2] + ".");
            ln(watch.Elapsed.ToString());
            ln("----------------------------------------------------------------------------------------------------------------");
            ln("ÜLESANNE 2");
            o.GetAllPairs();

            //o.GetCustomerPurchase(1);
        }

        private static void ln(string s){
            System.Console.WriteLine(s);
        }
    }
}
